<%= user_error_messages %>

<div class="spaced_box">
  <div><%= f.label :fname, "First Name" %><span class="required">*</span></div>
  <div><%= f.text_field :fname %></div>
</div>
<div class="spaced_box">
  <div><%= f.label :lname, "Last Name" %><span class="required">*</span></div>
  <div><%= f.text_field :lname %></div>
</div>
<div class="spaced_box">
  <div><%= f.label :email %><span class="required">*</span></div>
  <div><%= f.text_field :email %></div>
</div>
<% if @user.admin? %>
  <div class="spaced_box">
    <div><%= f.label :roles %></div>
    <div><%= f.collection_select(:roles, Role.all, :id, :name, {}, {:multiple => "multiple"}) %></div>
  </div>
<% end %>
<div class="spaced_box">
  <div><%= f.label :default_mapping_type_id, "Default Mapping Type" %></div>
  <div><%= f.collection_select(:default_mapping_type_id, MappingType.all(:order => :name), :id, :name, :include_blank => true) %></div>
</div>

<%= render :partial => "usernames_form" %>
